//package org.base23.video.controller;
//
//import io.swagger.v3.oas.annotations.Operation;
//import io.swagger.v3.oas.annotations.tags.Tag;
//import lombok.Data;
//import org.base23.web.model.Result;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import java.time.LocalDateTime;
//import java.time.format.DateTimeFormatter;
//
///**
// * 测试控制器
// */
//@RestController
//@RequestMapping("/test")
//@Tag(name = "测试接口", description = "用于测试系统功能")
//public class TestController {
//
//    @GetMapping("/time")
//    @Operation(summary = "测试时间序列化", description = "测试LocalDateTime的JSON序列化是否正常")
//    public Result testTimeSerialize() {
//        TestTimeData data = new TestTimeData();
//        data.setCurrentTime(LocalDateTime.now());
//        data.setMessage("时间序列化测试");
//        return Result.data(data);
//    }
//
//    @Data
//    public static class TestTimeData {
//        private String currentTime;
//        private String message;
//
//        public void setCurrentTime(LocalDateTime currentTime) {
//            this.currentTime = currentTime != null ? currentTime.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")) : null;
//        }
//    }
//}